package com.xmtlxx.sacw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xmtlxx.common.constant.Constants;
import com.xmtlxx.common.core.domain.BaseSacwEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 处置财物
 *
 * @author hergreen
 * @TableName S_DISPOSAL_PRO
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "S_DISPOSAL_PRO")
@NoArgsConstructor
@Data
public class DisposalPro extends BaseSacwEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 处置ID
     */
    private String disposalId;

    /**
     * 任务ID
     */
    private String taskId;

    /**
     * 财物编号
     */
    private String proNo;

    /**
     * 财物名称
     */
    @TableField(exist = false)
    private String proName;

    /**
     * 处置数量
     */
    private Long disposalNumber;

    /**
     * 处置金额
     */
    private BigDecimal disposalAmount;

    public DisposalPro(String id) {

        super(Constants.FAIL);
        this.id = id;
    }

}